package com.waypolice.manager.service;


import com.waypolice.base.BaseService;
import com.waypolice.pojo.UpmsOrganization;
import com.waypolice.pojo.UpmsOrganizationExample;

import java.util.List;

/**
* UpmsOrganizationService接口
* Created by shuzheng on 2017/3/20.
*/
public interface UpmsOrganizationService extends BaseService<UpmsOrganization, UpmsOrganizationExample> {

    /**
     * @author:zyp
     * @description 根据用户id获取用户的组织机构
     * @date: 2019/3/18 9:55
     * @return 
     */
    List<UpmsOrganization> getOrganization(int id);

    /**
     * @author:zyp
     * @description 根绝部门id获取组织部门
     * @date: 2019/3/20 14:45
     * @return 
     */
    UpmsOrganization getOrganizationById(long borDeptId);

    /**
     * @author:wr
     * @description 查询全部组织部门
     * @date: 2019/3/18 9:55
     * @return
     */
    List<UpmsOrganization> findAllOrganization();

    
    /**
     * @author:zyp
     * @description 判断组织名称是否重复
     * @date: 2019/5/27 10:14
     * @return 
     */
    int haveOrganizationName(String  name,String id);
}